home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMDOMConfiguration.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  123 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMDOMConfiguration.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMDOMConfiguration_h__
  6. #define __gen_nsIDOMDOMConfiguration_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIVariant; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMDOMConfiguration */
  21. #define NS_IDOMDOMCONFIGURATION_IID_STR "cfb5b821-9016-4a79-9d98-87b57c3ea0c7"
  22.  
  23. #define NS_IDOMDOMCONFIGURATION_IID \
  24.   {0xcfb5b821, 0x9016, 0x4a79, \
  25.     { 0x9d, 0x98, 0x87, 0xb5, 0x7c, 0x3e, 0xa0, 0xc7 }}
  26.  
  27. /**
  28.  * The nsIDOMDOMConfiguration interface represents the configuration
  29.  * of a document and maintains a table of recognized parameters.
  30.  *
  31.  * For more information on this interface, please see
  32.  * http://www.w3.org/TR/DOM-Level-3-Core/
  33.  */
  34. class NS_NO_VTABLE nsIDOMDOMConfiguration : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOMCONFIGURATION_IID)
  38.  
  39.   /* void setParameter (in DOMString name, in nsIVariant value)  raises (DOMException); */
  40.   NS_IMETHOD SetParameter(const nsAString & name, nsIVariant *value) = 0;
  41.  
  42.   /* nsIVariant getParameter (in DOMString name)  raises (DOMException); */
  43.   NS_IMETHOD GetParameter(const nsAString & name, nsIVariant **_retval) = 0;
  44.  
  45.   /* boolean canSetParameter (in DOMString name, in nsIVariant value); */
  46.   NS_IMETHOD CanSetParameter(const nsAString & name, nsIVariant *value, PRBool *_retval) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMDOMCONFIGURATION \
  52.   NS_IMETHOD SetParameter(const nsAString & name, nsIVariant *value); \
  53.   NS_IMETHOD GetParameter(const nsAString & name, nsIVariant **_retval); \
  54.   NS_IMETHOD CanSetParameter(const nsAString & name, nsIVariant *value, PRBool *_retval); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIDOMDOMCONFIGURATION(_to) \
  58.   NS_IMETHOD SetParameter(const nsAString & name, nsIVariant *value) { return _to SetParameter(name, value); } \
  59.   NS_IMETHOD GetParameter(const nsAString & name, nsIVariant **_retval) { return _to GetParameter(name, _retval); } \
  60.   NS_IMETHOD CanSetParameter(const nsAString & name, nsIVariant *value, PRBool *_retval) { return _to CanSetParameter(name, value, _retval); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIDOMDOMCONFIGURATION(_to) \
  64.   NS_IMETHOD SetParameter(const nsAString & name, nsIVariant *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParameter(name, value); } \
  65.   NS_IMETHOD GetParameter(const nsAString & name, nsIVariant **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(name, _retval); } \
  66.   NS_IMETHOD CanSetParameter(const nsAString & name, nsIVariant *value, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanSetParameter(name, value, _retval); } 
  67.  
  68. #if 0
  69. /* Use the code below as a template for the implementation class for this interface. */
  70.  
  71. /* Header file */
  72. class nsDOMDOMConfiguration : public nsIDOMDOMConfiguration
  73. {
  74. public:
  75.   NS_DECL_ISUPPORTS
  76.   NS_DECL_NSIDOMDOMCONFIGURATION
  77.  
  78.   nsDOMDOMConfiguration();
  79.  
  80. private:
  81.   ~nsDOMDOMConfiguration();
  82.  
  83. protected:
  84.   /* additional members */
  85. };
  86.  
  87. /* Implementation file */
  88. NS_IMPL_ISUPPORTS1(nsDOMDOMConfiguration, nsIDOMDOMConfiguration)
  89.  
  90. nsDOMDOMConfiguration::nsDOMDOMConfiguration()
  91. {
  92.   /* member initializers and constructor code */
  93. }
  94.  
  95. nsDOMDOMConfiguration::~nsDOMDOMConfiguration()
  96. {
  97.   /* destructor code */
  98. }
  99.  
  100. /* void setParameter (in DOMString name, in nsIVariant value)  raises (DOMException); */
  101. NS_IMETHODIMP nsDOMDOMConfiguration::SetParameter(const nsAString & name, nsIVariant *value)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* nsIVariant getParameter (in DOMString name)  raises (DOMException); */
  107. NS_IMETHODIMP nsDOMDOMConfiguration::GetParameter(const nsAString & name, nsIVariant **_retval)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* boolean canSetParameter (in DOMString name, in nsIVariant value); */
  113. NS_IMETHODIMP nsDOMDOMConfiguration::CanSetParameter(const nsAString & name, nsIVariant *value, PRBool *_retval)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* End of implementation class template. */
  119. #endif
  120.  
  121.  
  122. #endif /* __gen_nsIDOMDOMConfiguration_h__ */
  123.